import request from "@/request";
import { POST } from "@/constant";

export const getUsers = (data) => {
    return request({
        url: "/user/userlists",
        data,
        method: POST,
    });
};


export const getProfileData = () => {
    return request({
        url: '/xiangmutongji/index'
    })
}


export function ApiAddUser(data) {
    return request({
        url: '/user/adduser',
        data,
        method: POST,
    })
}

export function apiRemoveUser(data) {
    return request({
        url: "/user/deluser",
        method: POST,
        data,
    })
}

export function apiChangePassword(data) {
    return request({
        url: '/user/resetpwd',
        method: POST,
        data,
    })

}
// 考勤
export function userRecord(data) {
    return request({
        url: '/kaoqin/lists',
        method: POST,
        data,
    })
}
// 获取用户角色
export function getRole(data) {
    return request({
        url: '/user/getshenfen',
        method: POST,
        data,
    })
}
// 
// 身份 变更
export function addgroup(data) {
    return request({
        url: '/user/addgroup',
        method: POST,
        data,
    })
}

// 获取查询 客户列表
export function getCustomList(data) {
    return request({
        url: '/kehu/index',
        method: POST,
        data,
    })
}






